import styles from './index.module.scss'
import Order from '../Order'

const OrderList = ({ list, onUpdate }) => {
  return (
    <div className={styles.orderList}>
      {list.map((item) => (
        <Order onUpdate={onUpdate} orderInfo={item} key={item.id} />
      ))}
    </div>
  )
}

export default OrderList
